import request from './request'

// 获取Dashboard概览数据
export const getDashboardOverview = () => {
  return request({
    url: '/dashboard/overview',
    method: 'get'
  })
}

// 获取系统统计数据
export const getStatistics = (days) => {
  return request({
    url: '/dashboard/statistics',
    method: 'get',
    params: { days }
  })
}

// 获取告警统计
export const getAlarmStatistics = () => {
  return request({
    url: '/dashboard/alarm-statistics',
    method: 'get'
  })
}

